package spring.cloud.tasks.tasks_manager.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import spring.cloud.tasks.tasks_manager.dto.ZooKeeperDto;
import spring.cloud.tasks.tasks_manager.mapper.ZooKeeperDtoMapper;
import spring.cloud.tasks.tasks_manager.service.ZooKeeperDtoService;

@Service
public class ZooKeeperDtoServiceImpl implements ZooKeeperDtoService {

    @Autowired
    private ZooKeeperDtoMapper zooKeeperDtoMapper;


    @Transactional(readOnly = true)
    @Override
    public ZooKeeperDto selectByZooKeeperKey(String zooKeeperKey) {
        return zooKeeperDtoMapper.selectByZooKeeperKey(zooKeeperKey);
    }


}
